<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>数据统计</title>
    <link href="/favicon.ico" rel="icon">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- 依 赖 样 式-->
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" />
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/admin/css/other/console1.css" />
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" type="text/css" />
    <!-- 加 载 样 式-->
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/admin/css/loader.css" type="text/css" />
    <!-- 布 局 样 式 -->
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/admin/css/admin.css" type="text/css" />
    <!-- 表 单 样 式 -->
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/admin/css/soulTable.css" type="text/css" />

</head>
<body background="<?=adminassets?>assets/pear/admin/images/background.svg" class="pear-container">
    <style>
        .list .list-item {
            height: 31.8px;
            line-height: 31.8px;
            color: gray;
            padding: 1px;
            padding-left: 15px;
            border-radius: 4px;
            /* margin-top: 5.2px; */
        }

        .pull-right {
            float: right;
            top: 10px;
        }

        .layui-sales {
            font-size: 36px;
            color: #666;
            line-height: 36px;
            padding: 5px 0 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-all;
            white-space: nowrap;
            margin: 0;
        }

        .layui-backlog-body {
            display: block;
            padding: 10px 15px;
            background-color: #f8f8f8;
            color: #999;
            border-radius: 2px;
            transition: all .3s;
            -webkit-transition: all .3s;
        }

        .layui-backlog-body h3 {
            padding-bottom: 0;
            font-size: 12px;
            color: #999;
        }

        .layui-backlog-body p cite {
            font-style: normal;
            font-size: 30px;
            font-weight: 300;
            color: #009688;
        }
    </style>
    <!-- 主 题 更 换 -->

    <div class="layui-row layui-col-space15">
        <div class="layui-col-md9">
            <div class="layui-card">
                <div class="layui-card-header">
                    平台数据统计
                </div>
                <div class="layui-card-body">
                    <div class="layui-row layui-col-space15 layui-bg-gray">
                        <div class="layui-col-sm6 layui-col-md4">
                            <!-- 填充内容 -->
                            <div class="layui-card">
                                <div class="layui-card-header">今日已付款&nbsp;<span class="layui-badge layui-bg-red"><?= $todayPayOrder?$todayPayOrder:0 ?>&nbsp;条</span><span class="layui-badge layui-bg-blue pull-right">付款率&nbsp;<?= $todayPaySuccess?$todayPaySuccess:0 ?>%</span>
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-sales">¥ <?= $todayPayMoney?$todayPayMoney:0 ?></div>
                                    <div class="layui-sales-info">
                                        <fieldset class="layui-elem-field layui-field-title"></fieldset>
                                        <div>订单总数&nbsp;<span class="layui-badge layui-bg-black"><?= $todayOrderTotal?$todayOrderTotal:0 ?>&nbsp;条</span><span class="pull-right">订单金额&nbsp;<span class="layui-badge layui-bg-orange">¥<?= $todayPayAllMoney?$todayPayAllMoney:0 ?></span></span></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-sm6 layui-col-md4">
                            <!-- 填充内容 -->
                            <div class="layui-card">
                                <div class="layui-card-header">本月已付款&nbsp;<span class="layui-badge layui-bg-red"><?= $monthPayOrder?$monthPayOrder:0 ?>&nbsp;条</span><span class="layui-badge layui-bg-blue pull-right">付款率&nbsp;<?= $monthPaySuccess?$monthPaySuccess:0 ?>%</span>
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-sales">¥ <?= $monthPayMoney?$monthPayMoney:0 ?></div>
                                    <div class="layui-sales-info">
                                        <fieldset class="layui-elem-field layui-field-title"></fieldset>
                                        <div>订单总数&nbsp;<span class="layui-badge layui-bg-black"><?= $monthOrderTotal?$monthOrderTotal:0 ?>&nbsp;条</span><span class="pull-right">订单金额&nbsp;<span class="layui-badge layui-bg-orange">¥<?= $monthPayAllMoney?$monthPayAllMoney:0 ?></span></span></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-sm6 layui-col-md4">
                            <!-- 填充内容 -->
                            <div class="layui-card">
                                <div class="layui-card-header">今年已付款&nbsp;<span class="layui-badge layui-bg-red"><?= $yearPayOrder?$yearPayOrder:0 ?>&nbsp;条</span><span class="layui-badge layui-bg-blue pull-right">付款率&nbsp;<?= $yearPaySuccess?$yearPaySuccess:0 ?>%</span>
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-sales">¥ <?= $yearPayMoney?$yearPayMoney:0 ?></div>
                                    <div class="layui-sales-info">
                                        <fieldset class="layui-elem-field layui-field-title"></fieldset>
                                        <div>订单总数&nbsp;<span class="layui-badge layui-bg-black"><?= $yearOrderTotal?$yearOrderTotal:0 ?>&nbsp;条</span><span class="pull-right">订单金额&nbsp;<span class="layui-badge layui-bg-orange">¥<?= $yearPayAllMoney?$yearPayAllMoney:0 ?></span></span></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-card">
                <div class="layui-card-header">销售统计图(近2天 且只统计已付过款的订单)</div>
                <div class="layui-card-body">
                    <table class="layui-table">
                        <thead>
                            <tr>
                                <th class="border-top-0">图标</th>
                                <th class="border-top-0">支付方式</th>
                                <th class="border-top-0">今日</th>
                                <th class="border-top-0">昨日</th>
                                <th class="border-top-0">今日金额</th>
                                <th class="border-top-0">昨日金额</th>
                                <th class="border-top-0">同比</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><img class="rounded-circle" src="/Core/assets/img/wxpay.jpeg" alt="user" width="40"> </td>
                              <td>微信支付</td>
                              <td><?php echo $order['wxpay']['todayOrder']?></td>
                              <td><?php echo $order['wxpay']['lastday'] ?></td>
                              <td><?php echo $order['wxpay']['todayOrdermoney']?$order['wxpay']['todayOrdermoney']:'0.00'  ?></td>
                              <td><?php echo $order['wxpay']['lastdaymoney']?$order['wxpay']['lastdaymoney']:'0.00' ?></td>
                              <td><?php echo $order['wxpay']['t'] ?>%</td>
                            </tr>
                            <tr>
                                <td><img class="rounded-circle" src="/Core/assets/img/alipay.jpeg" alt="user" width="40"> </td>
                              <td>支付宝</td>
                              <td><?php echo $order['alipay']['todayOrder']?></td>
                              <td><?php echo $order['alipay']['lastday'] ?></td>
                              <td><?php echo $order['alipay']['todayOrdermoney']?$order['alipay']['todayOrdermoney']:'0.00'  ?></td>
                              <td><?php echo $order['alipay']['lastdaymoney']?$order['alipay']['lastdaymoney']:'0.00' ?></td>
                              <td><?php echo $order['alipay']['t'] ?>%</td>
                            </tr>
                            <tr>
                                <td><img class="rounded-circle" src="/Core/assets/img/qqpay.jpeg" alt="user" width="40"> </td>
                              <td>QQ</td>
                              <td><?php echo $order['qqpay']['todayOrder']?></td>
                              <td><?php echo $order['qqpay']['lastday'] ?></td>
                              <td><?php echo $order['qqpay']['todayOrdermoney']?$order['qqpay']['todayOrdermoney']:'0.00'  ?></td>
                              <td><?php echo $order['qqpay']['lastdaymoney']?$order['qqpay']['lastdaymoney']:'0.00' ?></td>
                              <td><?php echo $order['qqpay']['t'] ?>%</td>
                            </tr>
                            <tr>
                              <td><img class="rounded-circle" src="/Core/assets/icon/usdtpay.ico" alt="user" width="40"> </td>  
                              <td>USDT</td>
                              <td><?php echo $order['usdtpay']['todayOrder']?></td>
                              <td><?php echo $order['usdtpay']['lastday'] ?></td>
                              <td><?php echo $order['usdtpay']['todayOrdermoney']?$order['usdt']['todayOrdermoney']:'0.00'  ?></td>
                              <td><?php echo $order['usdtpay']['lastdaymoney']?$order['usdt']['lastdaymoney']:'0.00' ?></td>
                              <td><?php echo $order['usdtpay']['t'] ?>%</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="layui-col-md3">

            <div class="layui-card">
                <div class="layui-card-header">其他信息统计/总览</div>
                <div class="layui-card-body">
                    <ul class="layui-row layui-col-space10 layui-this">
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>总用户</h3>
                                <p><cite><?= $count2 ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>总订单</h3>
                                <p><cite><?= $count1 ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>总收入</h3>
                                <p><cite><?= $count4?$count4:0 ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>码子数量</h3>
                                <p><cite><?= $count3 ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>QQ在线通道</h3>
                                <p><cite><?= $qqpay_cookie_on ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>微信在线通道</h3>
                                <p><cite><?= $wxpay_cookie_on ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>支付宝在线通道</h3>
                                <p><cite><?= $alipay_cookie_on ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>USDT在线通道</h3>
                                <p><cite><?= $usdtpay_cookie_on ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>QQ离线通道</h3>
                                <p><cite><?= $qqpay_cookie_ok ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>微信离线通道</h3>
                                <p><cite><?= $wxpay_cookie_ok ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-xs6">
                            <a class="layui-backlog-body">
                                <h3>支付宝离线通道</h3>
                                <p><cite><?= $alipay_cookie_ok ?></cite></p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

        </div>
    </div>
    <!-- 主页面END -->
    <!--// 加载CommonJS-->
    <script src="<?=adminassets?>assets/pear/component/layui/layui.js"></script>
    <script src="<?=adminassets?>assets/pear/component/pear/pear.js"></script>
</body>

</html>